package com.huiyun.project.im.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huiyun.project.im.entity.ImCsSession;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 会话列表 Mapper 接口
 * </p>
 *
 * @author DESKTOP-CIBUH3O
 * @since 2020-07-28
 */
public interface ImCsSessionMapper extends BaseMapper<ImCsSession> {
    /**
     * 分页查询客户会话历史
     * 按租户分组
     *
     * @param page
     * @param map
     * @return
     */
    Page<ImCsSession> getCustomSessionList(@Param("page") Page page, @Param("params") Map<String, Object> map);

}
